package response

import (
	"github.com/gin-gonic/gin"
)

func OK(ctx *gin.Context, data any) {
	ctx.JSON(200, data)
	ctx.Abort()
}
func Failed(ctx *gin.Context, err error) {
	ctx.JSON(500, err.Error())
	ctx.Abort()
}
